package com.kty.cesuan.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * 配置类：静态资源映射
 */
@Slf4j
@Configuration
public class MybatisPageConfig extends WebMvcConfigurationSupport {

    /**
     * 配置静态资源映射
     */
    @Override
    protected void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/cesuan/**").addResourceLocations("classpath:/cesuan/");
        registry.addResourceHandler("/mhys/**").addResourceLocations("classpath:/mhys/");
    }

}
